package com.gangquan360.smartadmin.module.product.domain.dto;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class ProductCategoryVO {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("分类名称")
    private String category;

    @ApiModelProperty("父级分类id")
    private Long parentId;

    @ApiModelProperty("描述")
    private String categoryDesc;

    @ApiModelProperty("级别路径")
    private String path;

    @ApiModelProperty("子分类")
    @JsonProperty("children")
    private List<ProductCategoryVO> children;
    
    @ApiModelProperty("")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
}
